import { from } from 'rxjs'
import { pluck } from 'rxjs/operators'

from(["1", "2", "3"]).subscribe(console.log)

function p() {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve("hello")
    }, 2000)
  })
}

from([{ a: "hello" }, { a: "world" }]).pipe(pluck("a")).subscribe(console.log)

from(p()).subscribe(console.log)
